using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MimeCloud.Business.Helpers;
using MimeCloud.AssetManagement.Business.Interface;

namespace MimeCloud.AssetManagement.AssetRendering.AssetContent
{
    public static class ContentHelper
    {
        public static string GetUrlOfContent (IAssetContent content)
        {
            string contentUrl = String.Empty;
            string prefixUrl = String.Empty;
            if (content.AssetContentRepositoryList!=null && content.AssetContentRepositoryList.Count>0)
            {
                prefixUrl = content.AssetContentRepositoryList[0].URLPrefix;
            }
            return Web.WebPath.WebPathCombine(prefixUrl, content.AssetPath);
        }
    }
}
